
package com.techysky.xsd.dm;

import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;

@XmlType(name = "limitTypeValueAttType")
@XmlEnum
public enum LimitTypeValueAttType {

    @XmlEnumValue("po")
    PO("po"),
    @XmlEnumValue("oc")
    OC("oc"),
    @XmlEnumValue("pe")
    PE("pe");
    private final String value;

    LimitTypeValueAttType(String v) {
        value = v;
    }

    public String value() {
        return value;
    }

    public static LimitTypeValueAttType fromValue(String v) {
        for (LimitTypeValueAttType c: LimitTypeValueAttType.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }

}
